package com.bailan.foreat.service;

import com.bailan.foreat.entity.Product;
import com.bailan.foreat.vo.EsProduct;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ste
 * @since 2023-02-21 07:50:43
 */
public interface ProductService extends IService<Product> {

//    Page<EsProduct> searchByES(Integer currentPage, Integer pageSize, String keyword, Integer storeId);
    Page<EsProduct> searchByES(Integer currentPage, Integer pageSize, String keyword,Integer typeIdKeyword,Integer storeId);

    Page selectAll(Integer currentPage, Integer pageSize, Integer storeId);

    Product selectById(Integer id);
}
